<template>
    <view>
        <city-directory :citylists="list" @paramClick="paramClick" :city="city"></city-directory>
    </view>
</template>

<script>
    import cityDirectory from '@/components/xio-city-directory/city-directory.vue';
  import {list} from '@/components/xio-city-directory/citylist.js';
    export default {
        name:"phones",
        components:{
            cityDirectory
        },
        data() {
            return {
            list:list,//城市列表
            city:"" //默认地址     
            }
        },
        methods : {
            paramClick (e) {
                this.city = e.name;
            }
        }
    }
</script>

<style>

</style>